<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/struts-bean" prefix="bean"%> 
<%@ taglib uri="/WEB-INF/tld/struts-html" prefix="html"%>
<%@ taglib uri="/WEB-INF/tld/struts-logic" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tld/jstl/c" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="/WEB-INF/tld/jstl/fn" prefix="fn" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html locale="true">
  <head>
    <html:base />
    
    <title>购车网首页flash管理</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<style type="text/css">
.vb_wid {width:100%; margin: 0 auto; border-top:1px #FDB18D solid; background:#F5F5F5; color:#FE6500; text-indent:20px; line-height:25px; font-size:12px;}
.fb_search {width:100%; margin:0 auto; margin-top:20px; border:1px #FFCD7F solid;}
.fb_search h1 {background:#FFEFBB; margin:0px; padding:0px; line-height:28px; text-indent:10px; font-size:14px;}
.fb_s_a1 {margin:5px; font-size:14px;}
.fb_s_a2 {font-size:12px; line-height:22px; color:#999; margin-left:5px;}
.fb_ddd {width:100%; margin:0 auto; margin-top:10px; border-top:3px #FFCC00 solid; background:url(images/pen.gif) no-repeat 5px 3px; height:40px; text-indent:50px; line-height:40px; color:#464646; font-size:12px;}
.fb_nr {width:100%; margin:0 auto; margin-top:10px; line-height:22px; font-size:12px; color:#464646}
.fb_nr span {color:#FF0000;}
.fb_nr select {color:464646; font-size:12px;}
.fb_nr Div {margin-top:10px; height:30px;}
.fb_nr Div input {font-size:12px; line-height:18px;}
.inputtttt {border:1px #DEA303 solid; height:20px; color:#464646; font-size:12px; background:url(images/bottom_bg.jpg) repeat-x left top;}
.lb {background:#FFCD7F; color:#464646; font-weight:bold; text-align:center; height:30px; line-height:30px;}
.lb1 {border-bottom:1px #000000 dashed; height:28px;}
.lb1 td {border-bottom:1px #ccc dashed; background:#eefefe}
.fy1 {width:100%; margin:0 auto; margin-top:8px; background:#F8F8F8; font-size:12px; height:30px; line-height:28px; text-indent:10px;}
.fy1 span {color:#FF0000; font-weight:bold;}
.fy1 a {color:#464646; text-decoration:none;}
.fy1 a:hover {color:#FF0000; text-decoration:underline;}
</style>
		<script type="text/javascript">
			function makeSure(obj){
				 if( confirm('确定要删除此图片吗')){
				       window.location.href="/gcwdom4jDemo.do?method=delete&id="+obj;
				 }
				  return false;
			}
		</script>
  </head>
  
  <body>
  <logic:present name="add">
  <bean:write name="add" filter="false"/>
  </logic:present>
  <logic:present name="update">
  <bean:write name="update" filter="false"/>
  </logic:present>
  <logic:present name="succe">
  <bean:write name="succe" filter="false"/>
  </logic:present>
   <div class="vb_wid">购车网首页flash</div>
<div class="fb_nr">
 
      <logic:present name="list">
	<logic:notEmpty name="list">
 
  	<form action="" name="theForm1" method="post" id="theForm1">
  <table width="100%" border="0" cellpadding="0"
			cellspacing="0" style="font-size:12px">
    <tr class="lb">
      <td width="4%" bgcolor="#FEDFC0">选择</td>
      <td width="15%" bgcolor="#FEDFC0">标题</td>
      <td width="15%" bgcolor="#FEDFC0">图片链接</td>
      <td width="10%" bgcolor="#FEDFC0">图片</td>
      <td width="6%" bgcolor="#FEDFC0">修改</td>
      <td width="6%" bgcolor="#FEDFC0">删除</td>
    </tr>

	<logic:iterate id="list" name="list">
      <tr class="lb1">
        <td align="center">
          <input type="checkbox" id="checkboxparam" name="checkboxparam" value="${list.id}" /></td>
          <td align="left">
        <span> ${list.titleName}</span>
        </td>
        <td align="left">
        <span> ${list.link}</span>
        </td>
        
        <td align="center">
        <c:if test="${list.item_url!=null}">
        <img src="${list.item_url}" width="80px" height="80px" /></c:if>
        <c:if test="${list.item_url==null}">无图片</c:if>
        </td>
        <td align="center"><html:link href="javascript:window.location=encodeURI('/gcwdom4jDemo.do?method=toupdate&id=${list.id}&link=${list.link}&item_url=${list.item_url}&titleName=${list.titleName}');void 0;"><img src="/admin/homeSite/trade/images/edititem.gif" border="0"/></html:link></td>
        <td align="center"><html:link href="javascript:makeSure('${list.id}');void 0"><img src="/admin/homeSite/trade/images/edititem.gif" border="0"/></html:link></td>
        
      </tr>
      
      	</logic:iterate>

		<tr>
	<td colspan=11>
	</td>
	</tr>
    </table>
    </form>
    	</logic:notEmpty>
	</logic:present>
   <h1><img src="image/qqddc_shop1.gif" width="720" height="8" /></h1>
</div>
	

  </body>
</html:html>










